package com.xtaller.easy.admin.service;

import java.util.List;

import com.alibaba.fastjson.JSONObject;
import com.xtaller.common.bean.Where;
import com.xtaller.easy.admin.model.SysRole;
import com.xtaller.easy.admin.specification.Auth;

/**
* Created by Taller on 2018/04/13
*/
public interface ISysRoleService {
   /******************* CURD ********************/ 
   // 创建 
   SysRole createSysRole(SysRole model, String[] modules);
   // 删除 
   Boolean deleteSysRole(Object ids,String reviser);
   // 修改 
   SysRole updateSysRole(SysRole model, String[] modules);
   // 查询 
   List<SysRole> findByIds(Object ids);
   // 属于 
   Boolean exist(List<Where> w); 
   // 查询一个id是否存在 
   Boolean existId(Object id); 
   /******************* CURD ********************/
   Boolean existName(SysRole model, boolean isCreate);
   List<JSONObject> getRole();
   List<JSONObject> getByRoleId(String RoleId);

   Boolean setAuth(List<Auth> auths, String roleId, String creator);
}